pygrub: Revert 19322:3118041f2259, as it breaks timeout=0 behaviour
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 20 Aug 2009 07:23:33 +0000 (08:23 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 20 Aug 2009 07:23:33 +0000 (08:23 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/pygrub/src/pygrub

index ac20aace67225bb26d4cd7ab9bff80778026f99d..93e157c4b767eca109279a813f0bcc3b40c68ac0 100644 (file)
@@ -443,11 +443,7 @@ class Grub:
                 # Timed out waiting for a keypress
                 if mytime != -1:
                     mytime += 1
-                    # curses.timeout() does not work properly on Solaris
-                    # So we may come here even after a key has been pressed.
-                    # Check both timeout and mytime to avoid exiting
-                    # when we shouldn't.
-                    if timeout != -1 and mytime >= int(timeout):
+                    if mytime >= int(timeout):
                         self.isdone = True
                         break
             else: